using net_work.Data.DTO.Cam;
using net_work.Data.Entity.Cam;

namespace net_work.IRepository.Cam;

public interface IApplyRepository : IRepository<Apply>
{
    /// <summary>
    /// 插入审批申请
    /// </summary>
    /// <param name="applyAddRequestBackend">插入审批申请</param>
    /// <returns>申请ID</returns>
    Task<long> InsertAsync(ApplyAddRequestBackend applyAddRequestBackend);

    /// <summary>
    /// 更新审批申请信息
    /// </summary>
    /// <param name="applyUpdateRequest">更新审批申请信息</param>
    /// <returns>是否成功</returns>
    Task<bool> UpdateAsync(ApplyUpdateRequest applyUpdateRequest);
}